<?php
//文件上传接口，前后台共用
Route::post('uploadImg', 'PublicController@uploadImg')->name('uploadImg');

Route::get('/', 'Home\IndexController@index')->name('home');
Route::get('/test', 'Home\IndexController@test')->name('test');

//支付
Route::group(['namespace' => 'Home'], function () {
    // 支付宝支付异步通知
    Route::any('/alipay/notify', 'PayController@alipayNotify')->name('alipay.notify');

    // 支付宝同步通知
    Route::any('/alipay/return', 'PayController@alipayReturn')->name('alipay.return');

    //微信支付异步回调
    Route::post('/wechat/notify', 'PayController@wechatPayNotify')->name('wechat.nofity');

    //微信扫码支付
    Route::get('/wechatPay', 'PayController@wechatPay')->name('wechatPay');

    //司机用户协议
    Route::get('/driver/protocol', 'AppController@driverProtocol')->name('driver.protocol');

    //货主用户协议
    Route::get('/owner/protocol', 'AppController@ownerProtocol')->name('owner.protocol');
});
//**sql 公共发送短信 【好汉科技】xxxx
//群发相同内容短息
Route::post('/sendmany', 'PublicController@sendMsgToMany')->name('send.msg.manay');
//一对一发送个性群发短信
Route::post('/senddistict', 'PublicController@sendMsgToDistict')->name('send.msg.distict');
//公共发验证码
Route::post('/vercode', 'PublicController@getVCode')->name('send.msg.vcode'); // 获取验证码